package com.doctcloud.hisinfo.outpbill.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.doctcloud.common.core.utils.StringUtils;
import com.doctcloud.hisinfo.histable.domain.outpbill.OutpOrderDescDo;
import com.doctcloud.hisinfo.outpbill.mapper.OutpOrderDescMapper;
import com.doctcloud.hisinfo.outpbill.service.IOutpOrderDescService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class OutpOrderDescService extends ServiceImpl<OutpOrderDescMapper, OutpOrderDescDo> implements IOutpOrderDescService {
    @Override
    public List<OutpOrderDescDo> listByRcpt(String rcptNo) {
        List<OutpOrderDescDo> resList = new ArrayList<>();
        if (StringUtils.isEmpty(rcptNo)){
            return resList;
        }
        LambdaQueryWrapper<OutpOrderDescDo> query = new LambdaQueryWrapper<>();
        query.eq(OutpOrderDescDo::getRcptNo,rcptNo);
        return baseMapper.selectList(query);
    }
}
